package com.share.design.proxy;

/**
 * 代理boy1
 * author:caifan
 * date:2020/2/4
 */
public class Boy2 implements GiveGift {

    private Boy1 boy1;

    public Boy2(Girl girl) {
        boy1 = new Boy1(girl);
    }

    @Override
    public void giveFlower() {
        boy1.giveFlower();
    }
}
